/**
 * @file 大屏信息
 */

const {mock} = require('mockjs');

module.exports = {
    'POST /api/screen/stat': mock({
        'code': 0,
        'msg': null,
        'data': {
            'totalMoney': 67487596898,
            'percent': 1.45,
            'roi': null
        }
    }),
    'POST /api/screen/team/stat': mock({
        'code': 0,
        'msg': null,
        'data': {
            'name': '大屏名称',
            'orderType': 1,
            'teamScreenStats': [
                {"name": "大", "totalMoney": 9075635, "percent": 110.58},
                {"name": "分", "totalMoney": 8053657, "percent": 96.6},
                {"name": "分", "totalMoney": 7053657, "percent": 59},
                {"name": "分", "totalMoney": 6025343, "percent": 45},
                {"name": "分", "totalMoney": 6042300, "percent": 34},
                {"name": "分", "totalMoney": 604256, "percent": 25.67},
                {"name": "分", "totalMoney": 60426, "percent": 20.67},
                {"name": "分", "totalMoney": 6256, "percent": 18.67},
                {"name": "分", "totalMoney": 60426, "percent": 15.67},
                {"name": "分", "totalMoney": 6256, "percent": 13.67},
            ],
            'personalScreenStats': [
                {"name": "阮艾若", "totalMoney": 9075635, "avatar": 'https://ehr.baijia.com/GET/file/file.json?file=a1cfea1a-2e2c-44d8-a57a-33ed35056111.jpg'},
                {"name": "阮艾若", "totalMoney": 9075623, "avatar": 'https://ehr.baijia.com/GET/file/file.json?file=a1cfea1a-2e2c-44d8-a57a-33ed35056111.jpg'},
                {"name": "阮艾若", "totalMoney": 8075567, "avatar": 'https://ehr.baijia.com/GET/file/file.json?file=a1cfea1a-2e2c-44d8-a57a-33ed35056111.jpg'},
                {"name": "阮艾若", "totalMoney": 7075489, "avatar": 'https://ehr.baijia.com/GET/file/file.json?file=a1cfea1a-2e2c-44d8-a57a-33ed35056111.jpg'},
                {"name": "阮艾若", "totalMoney": 6065345, "avatar": 'https://ehr.baijia.com/GET/file/file.json?file=a1cfea1a-2e2c-44d8-a57a-33ed35056111.jpg'},
                {"name": "阮艾若", "totalMoney": 5055298, "avatar": 'https://ehr.baijia.com/GET/file/file.json?file=a1cfea1a-2e2c-44d8-a57a-33ed35056111.jpg'},
                {"name": "阮艾若", "totalMoney": 4045123, "avatar": 'https://ehr.baijia.com/GET/file/file.json?file=6ed47981-e90b-4fba-8ccd-c1751763c638.jpg'},
                {"name": "阮艾若", "totalMoney": 3035098, "avatar": 'https://ehr.baijia.com/GET/file/file.json?file=6ed47981-e90b-4fba-8ccd-c1751763c638.jpg'},
                {"name": "阮艾若", "totalMoney": 2024567, "avatar": 'https://ehr.baijia.com/GET/file/file.json?file=6ed47981-e90b-4fba-8ccd-c1751763c638.jpg'},
                {"name": "阮艾若", "totalMoney": 1012758, "avatar": 'https://ehr.baijia.com/GET/file/file.json?file=6ed47981-e90b-4fba-8ccd-c1751763c638.jpg'},
            ]
        }
    }),
    'POST /api/screen/search': mock({
        'code': 0,
        'msg': null,
        'data': {
            'items': [
                {
                    'id': 1,
                    'name': '大屏1',
                    'screenType': 1,
                    'creator': '艾若',
                    'createTime': '2020-06-21 12:23:45'
                },
                {
                    'id': 2,
                    'name': '大屏2',
                    'screenType': 2,
                    'creator': '艾若',
                    'createTime': '2020-06-23 12:23:45'
                }
            ]
        },
        'pager': {
            'pageSize': 10,
            'pageNum': 1,
            'count': 100
        }
    }),
    'POST /api/screen/delete': mock({
        'code': 0,
        'msg': null,
        'data': {
            'id': 1
        },
        'pager': null
    }),
    'POST /api/screen/create': mock({
        'code': 0,
        'msg': null,
        'data': {
            'id': 1
        },
        'pager': null
    }),
    'POST /api/screen/update': mock({
        'code': 0,
        'msg': null,
        'data': {
            'id': 1
        },
        'pager': null
    }),
    'POST /api/screen/detail': mock({
        'code': 0,
        'msg': null,
        'data': {
            'id': 1,
            'name': '大屏名称',
            'screenType': 2,
            'positiveClazzIds': '正价班',
            'publicClazzIds': '原班级id/免费公开课',
            'startTime': '2020-06-29 10:23',
            'endTime': '2020-06-30 05:20',
            'baseType': 4,
            'groupTotalNum': 23,
            'investmentPrice': 40000,
            'orderType': 2,
            'screenGroups': [
                {
                    'id': 1,
                    'name': '分组名称',
                    'accounts': [
                        {
                            'id': 1,
                            'displayName': '111'
                        },
                        {
                            'id': 2,
                            'displayName': '222'
                        },
                        {
                            'id': 3,
                            'displayName': '333'
                        },
                        {
                            'id': 4,
                            'displayName': '444'
                        },
                        {
                            'id': 5,
                            'displayName': '555'
                        },
                        {
                            'id': 6,
                            'displayName': '666'
                        }
                    ],
                    'targetMoney': 2000
                },
                {
                    'id': 2,
                    'name': '分组名称',
                    'accounts': [
                        {
                            'id': 33,
                            'displayName': '333'
                        },
                        {
                            'id': 444,
                            'displayName': '444'
                        }
                    ],
                    'targetMoney': 2000
                }
            ]
        },
        'pager': null
    }),
    'POST /api/cas/account/searchAccountsFuzzy': mock({
        'code': 0,
        'msg': null,
        'data|10': [
            {
                'id|+1': 1,
                'name': '@name',
                'displayName': '@cname'
            }
        ],
        'pager': null
    }),
};
